win32:TEMPLATE = vcapp
!win32:TEMPLATE = app

include(../dir.pri)

win32:QMAKE_CXXFLAGS_WARN_ON = /W3

QT += gui opengl
CONFIG += console

# Internal dependencies
macx {
	QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
}


LIBS += -L../../bin
unix {
	LIBS += -L../../bin/lib
	INCLUDEPATH += ../../libusb-unix
	INCLUDEPATH += ../../libusb-unix/libusb
	CONFIG(debug, debug|release) {
		OBJECTS_DIR = Debug 
		LIBS += -L../math/Debug
		LIBS += -L../math
		DESTDIR = ../../bin
		LIBS += -lz800D -lusb-1.0 -lmathD
		TARGET = z800calibD
	} else {
		OBJECTS_DIR = Release
		LIBS += -L../math/Release
		LIBS += -L../math
		OBJECTS_DIR = Release
		DESTDIR = ../../bin
		LIBS += -lz800 -lusb-1.0 -lmath
		TARGET = z800calib
	}

} else {
	CONFIG(debug, debug|release) {
		LIBS += -L../math/Debug
		OBJECTS_DIR = Debug 
		DESTDIR = ../../bin
		LIBS += -lz800D -lmathD
		TARGET = z800calibD
	} else {
		LIBS += -L../math/Release
		OBJECTS_DIR = Release
		DESTDIR = ../../bin
		LIBS += -lz800 -lmath
		TARGET = z800calib
	}
}

INCLUDEPATH += ../libz800
INCLUDEPATH += ../math

CONFIG(debug, debug|release) {
	unix { QMAKE_LFLAGS += -Wl,-rpath,. }
} else {
	unix { QMAKE_LFLAGS += -Wl,-rpath,. }
}

FORMS += MainWindow.ui \
	DlgRawData.ui \
	DlgGyroCalib.ui \
	DlgDisplay.ui \
	DlgProperties.ui \
	DlgEditProperty.ui \
	DlgCalibVec.ui

SOURCES += Main.cpp \
	MainWindow.cpp \
	DlgRawData.cpp \
	DlgGyroCalib.cpp \
	CoordDrawer.cpp \
	RenderArea.cpp \
	DlgDisplay.cpp \
	DlgProperties.cpp \
	DlgEditProperty.cpp \
	Utils.cpp \
	DlgCalibVec.cpp

HEADERS += MainWindow.h \
	DlgRawData.h \
	DlgGyroCalib.h \
	CoordDrawer.h \
	RenderArea.h \
	DlgDisplay.h \
	DlgProperties.h \
	DlgEditProperty.h \
	Utils.h \
	DlgCalibVec.h
